package cn.kgc.client;

import cn.kgc.base.vo.UmsMemberReceiveAddressVo;
import cn.kgc.commons.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.List;

/**
 * <p></p>
 *
 * @author 李孟鸠
 * @Date: 2023年01月02日10:39
 */
@FeignClient(value = "mall-ums",path = "/ums",fallback = UmsFeignClientImpl.class)
public interface UmsFeignClient {
    @GetMapping("/umsMemberReceiveAddress/mylist")
    Result<List<UmsMemberReceiveAddressVo>> getUmsMemberReceiveAddress(
            @RequestParam(name = "memberId") Long memberId);

    @GetMapping("/umsMemberReceiveAddress/{id}")
    Result<UmsMemberReceiveAddressVo>  selectOne(@PathVariable(name = "id") Serializable id);
}